﻿
Partial Class AdminNewNumbers
    Inherits Page

    Public Taxists As List(Of taxist)
    Public Orders As List(Of orders)

    Protected Overrides Sub OnLoad(e As EventArgs)
        MyBase.OnLoad(e)

        Using context As New TaxiEntities()
            Taxists = context.taxist.Include("cities").OrderByDescending(Function(a) a.taxi_created).ToList()
            Orders = context.orders.Include("torders").Include("torders.taxist").Include("torders.taxist.cities").Where(Function(a) String.IsNullOrEmpty(a.order_user_phone) <> True).OrderByDescending(Function(a) a.order_create).ToList()
        End Using
    End Sub

End Class
